home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tricks of the Mac Game Programming Gurus
/
TricksOfTheMacGameProgrammingGurus.iso
/
Information
/
CSMP Digest
/
volume 1
/
csmp-v1-114.txt
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS/Acorn
UTF-8
Wrap
Text File
|
1994-12-08
|
42.4 KB
|
1,112 lines
|
[
TEXT/R*ch
]
C.S.M.P. Digest Mon, 15 Jun 92 Volume 1 : Issue 114
Today's Topics:
Are questions here being answered?
List Manager Q: when all cells are selected....
Gestalt
HELP! Beginning C++ on Mac....
Q: what is the basic edit-resource-file procedure?
How to (not) hide the menu bar
The Comp.Sys.Mac.Programmer Digest is moderated by Michael A. Kelly.
These digests are available (by using FTP, account anonymous, your email
address as password) in the pub/mac/csmp-digest directory on ftp.cs.uoregon.
edu. This is also the home of the comp.sys.mac.programmer Frequently Asked
Questions list. The last several issues of the digest are available from
sumex-aim.stanford.edu as well.
These digests are also available via email. Just send a note saying that you
want to be on the digest mailing list to mkelly@cs.uoregon.edu, and you will
automatically receive each new digest as it is created.
The digest is a collection of articles from the internet newsgroup comp.sys.
mac.programmer. It is designed for people who read c.s.m.p. semi-regularly
and want an archive of the discussions. If you don't know what a newsgroup
is, you probably don't have access to it. Ask your systems administrator(s)
for details. (This means you can't post questions to the digest.)
The articles in these digests are taken directly from comp.sys.mac.programmer.
They are not edited; all articles included in this digest are in their original
posted form. The only articles that are -not- included in these digests are
those which didn't receive any replies (except those that give information
rather than ask a question). All replies to each article are concatenated
onto the original article in the order in which they were received. Article
threads are not added to the digests until the last article added to the
thread is at least one month old (this is to ensure that the thread is dead
before adding it to the digests).
Send administrative mail to mkelly@cs.uoregon.edu.
-------------------------------------------------------
From: scott@mcl.mcl.ucsb.edu (Scott Bronson)
Subject: Are questions here being answered?
Date: 10 May 92 18:21:59 GMT
I have been reading this group for a while, and I notice that the number
of questions asked far outweigh the number of answers posted. I normally
just mail whatever help I can offer to the original poster, but I have
yet to see anything that I've mailed end up in a summary.
I agree that keeping a summary is no easy task, but it does save precious
bandwidth on an already too-busy comp.sys.mac.programmer. Then again,
I've had a few nagging questions of my own answered by watching threads
for other people's questions. With this in mind, I propose some
questions:
Would it be preferable to followup to every article and heck with the
bandwidth? Or should c.s.m.p readers assume the original author is going
to summarize whatever data he recieved (which rarely happens)? Would
there be a way of making people more aware of how cool summaries actually
are, and cajoling them into taking the extra ten or twenty minutes it takes
to prepare them?
Are questions here being answered adequately?
- Scott
+++++++++++++++++++++++++++
From: peter@cujo.curtin.edu.au (Peter N Lewis)
Organization: NCRPDA, Curtin University
Date: Mon, 11 May 1992 00:34:46 GMT
In article <scott.705522119@mcl>, scott@mcl.mcl.ucsb.edu (Scott Bronson) writes:
Questions certainly are beeing answered. I have asked a fair number of
questions over the last year, and with the exception of a couple really
tricky ones (that I didnt really expect an answer for anyway) they have
all been answered, either with a solution or basically saying what I
wanted was impossible to do neatly...
> I have been reading this group for a while, and I notice that the number
> of questions asked far outweigh the number of answers posted. I normally
> just mail whatever help I can offer to the original poster, but I have
> yet to see anything that I've mailed end up in a summary.
I agree with that, and I agree its a problem. I'd suggest that when
we Email an answer to a question (and Email is definitely the correct
place for the response as a general rule (obviously there are exceptions
such as this where I wish to make all people aware of my response... :) ),
anyway, when we Email an answer, include at the end something like:
"Please summarise this and any other answers you get back to csmp."
Another thing that should be noted is that a summary should indeed be
a summary, not just a copy of all received Email (which is BTW agaist
net etiquet anyway, since you should not post someones private Email
to you without asking their permission...). So a good summary would
be to repeat your basic question, and then describe in your own words
the various solutions that were offered to you (not just the one you
chose as the best either...).
> Would it be preferable to followup to every article and heck with the
> bandwidth?
No!
> Or should c.s.m.p readers assume the original author is going
> to summarize whatever data he recieved (which rarely happens)? Would
> there be a way of making people more aware of how cool summaries actually
> are, and cajoling them into taking the extra ten or twenty minutes it takes
> to prepare them?
How about we try the above request in our answers and see how if that
improves things...?
> Are questions here being answered adequately?
Yes, but remember "you get what you pay for!" :-)
BTW, THANKS to all those who answer questions!
Have fun,
Peter.
______________________________________________________________________
Peter N Lewis, NCRPDA, Curtin University peter@cujo.curtin.edu.au
GPO Box U1987, Perth WA 6001, AUSTRALIA FAX: +61 9 367 8141
+++++++++++++++++++++++++++
From: edw@caligula.cts.com (Ed Watkeys)
Date: Sun, 10 May 92 20:19:57 EDT
Organization: Distant Software
In article <scott.705522119@mcl> (comp.sys.mac.programmer), scott@mcl.mcl.ucsb.edu (Scott Bronson) writes:
> I have been reading this group for a while, and I notice that the number
> of questions asked far outweigh the number of answers posted. I normally
> just mail whatever help I can offer to the original poster, but I have
> yet to see anything that I've mailed end up in a summary.
>
> I agree that keeping a summary is no easy task, but it does save precious
> bandwidth on an already too-busy comp.sys.mac.programmer. Then again,
> I've had a few nagging questions of my own answered by watching threads
> for other people's questions. With this in mind, I propose some
> questions:
>
> Would it be preferable to followup to every article and heck with the
> bandwidth? Or should c.s.m.p readers assume the original author is going
> to summarize whatever data he recieved (which rarely happens)? Would
> there be a way of making people more aware of how cool summaries actually
> are, and cajoling them into taking the extra ten or twenty minutes it takes
> to prepare them?
>
> Are questions here being answered adequately?
>
> - Scott
>
I've asked a lot of questions, and have generally gotten answers worthy of
the questions. By this, I mean that when I ask bad questions, I don't get
a great number of responses. When I think about the question, and include
important related info, I generally get more answers, and the answers are
more helpful.
I generally don't like reply by email, unless it is also posted. I cynically
assume that people don't get around to summarizing (I rarely do...).
Ed
- --
Ed Watkeys (Drexel U. Comp Sci) "Moral judgement and condemnation is
edw@caligula.cts.com the favorite form of revenge for the
edw%caligula@phlpa.pha.pa.us spiritually limited on those who are
ls.com!phlpa!caligula!edw less so...." -- Friedrich Nietzsche
+++++++++++++++++++++++++++
From: dougm@cns.caltech.edu (Doug McNaught)
Date: 10 May 92 21:20:44 GMT
Organization: California Institute of Technology
In article <scott.705522119@mcl> scott@mcl.mcl.ucsb.edu (Scott Bronson) writes:
I have been reading this group for a while, and I notice that the number
of questions asked far outweigh the number of answers posted. I normally
just mail whatever help I can offer to the original poster, but I have
yet to see anything that I've mailed end up in a summary.
I agree that keeping a summary is no easy task, but it does save precious
bandwidth on an already too-busy comp.sys.mac.programmer. Then again,
I've had a few nagging questions of my own answered by watching threads
for other people's questions. With this in mind, I propose some
questions:
Would it be preferable to followup to every article and heck with the
bandwidth? Or should c.s.m.p readers assume the original author is going
to summarize whatever data he recieved (which rarely happens)? Would
there be a way of making people more aware of how cool summaries actually
are, and cajoling them into taking the extra ten or twenty minutes it takes
to prepare them?
Are questions here being answered adequately?
Here's my $0.02:
If I ask a question, and one person emails me the answer, and no one
posts or mails asking for solutions, I figure there's not much
interest and just let it lie. If one person asks me for the solution,
I'll email, if five, I'll probably post a summary.
If I see a question that has an easy answer and comes up often, I'll
email. If it's an interesting question and doesn't have a clear
answer, I'll post to try to start a discussion. If it's in the FAQ,
I'll email and refer them to the FAQ list.
regards,
doug
- --
Doug McNaught |"Sadder still to watch it die/ Then never to have
dougm@cns.caltech.edu | known it/ For you, the blind who once could see/
mcnaught@midget.towson.edu | The bell tolls for thee..." --Neil Peart
Nobody approves my opinions! Not even me, sometimes. Read at your own risk.
+++++++++++++++++++++++++++
From: ksand@apple.com (Kent Sandvik)
Date: 14 May 92 03:15:09 GMT
Organization: MacDTS Mongols
In article <scott.705522119@mcl>, scott@mcl.mcl.ucsb.edu (Scott Bronson) writes:
> Would it be preferable to followup to every article and heck with the
> bandwidth? Or should c.s.m.p readers assume the original author is going
> to summarize whatever data he recieved (which rarely happens)? Would
> there be a way of making people more aware of how cool summaries actually
> are, and cajoling them into taking the extra ten or twenty minutes it takes
> to prepare them?
The Net is a chaotic system, and whatever rules we propose will never
be followed. Otherwise I agree that private email and posted summaries
would certainly decrease unnecessary postings of cool and long .signatures.
The moderated c.s.m.p mailing digests also helps a little bit in order
to control the huge flow of data.
Anyway, my humble opinion is to shorten and answer a question with
as few words as possible. I know, it's impossible for me, I inherited
too many genes from my mother's side.
Cheers,
Kent
---------------------------
From: walkerj@math.scarolina.edu (Jim Walker)
Subject: List Manager Q: when all cells are selected....
Date: 11 May 92 23:33:28 GMT
Organization: USC Department of Computer Science
IM IV says: "If neither the Shift nor the Command key is held down, a click
causes all current selections to be deselected, and the cell receiving the
click to be selected."
However, the actual behavior of the List Manager seems to be that if all
cells are selected, and you click on one of the cells, then nothing
happens.
Do you folks agree that this is a conflict between theory and practice? If
so, is there any way to make the List Manager behave right?
- --
-- Jim Walker walkerj@math.scarolina.edu
+++++++++++++++++++++++++++
From: tinsel@uiuc.edu (Thomas Aaron Insel)
Date: 13 May 92 01:38:42 GMT
Organization: disorganized
walkerj@math.scarolina.edu (Jim Walker) writes:
> IM IV says: "If neither the Shift nor the Command key is held down, a click
> causes all current selections to be deselected, and the cell receiving the
> click to be selected."
> However, the actual behavior of the List Manager seems to be that if all
> cells are selected, and you click on one of the cells, then nothing
> happens.
> Do you folks agree that this is a conflict between theory and practice? If
> so, is there any way to make the List Manager behave right?
I think the List Manager works how it was meant to, but Inside Macintosh is
imprecise. What should actually be said is "if neither the Shift nor the
Command key is held down, a click on a currently unselected cell causes all
current..."
- --
Thomas Aaron Insel (tinsel@uiuc.edu)
I speak for myself, and not for the State or University of Illinois.
"We must not confuse dissent with disloyalty." -- Edward R. Murrow
+++++++++++++++++++++++++++
From: ldo@waikato.ac.nz (Lawrence D'Oliveiro, Waikato University)
Date: 13 May 92 16:24:48 +1200
Organization: University of Waikato, Hamilton, New Zealand
In article <1992May13.013842.18668@news.cso.uiuc.edu>, tinsel@uiuc.edu (Thomas Aaron Insel) writes:
> walkerj@math.scarolina.edu (Jim Walker) writes:
>
>> IM IV says: "If neither the Shift nor the Command key is held down, a click
>> causes all current selections to be deselected, and the cell receiving the
>> click to be selected."
>
>> However, the actual behavior of the List Manager seems to be that if all
>> cells are selected, and you click on one of the cells, then nothing
>> happens.
>
>> Do you folks agree that this is a conflict between theory and practice? If
>> so, is there any way to make the List Manager behave right?
>
> I think the List Manager works how it was meant to, but Inside Macintosh is
> imprecise. What should actually be said is "if neither the Shift nor the
> Command key is held down, a click on a currently unselected cell causes all
> current..."
Yup, and if all cells are currently selected, then the empty space below
(and to the right? I've never created lists with more than one column!)
of the last cell can stand in for an unselected cell for you to click on.
Of course, if you're clever in setting your scroll limits so this empty
space doesn't come into view, then you lose this single-click shortcut for
deselecting all cells, and you need three clicks to do it :-{.
Lawrence D'Oliveiro fone: +64-7-856-2889
Computer Services Dept fax: +64-7-838-4066
University of Waikato electric mail: ldo@waikato.ac.nz
Hamilton, New Zealand 37^ 47' 26" S, 175^ 19' 7" E, GMT+13:00
There's got to be more to life than the real world.
+++++++++++++++++++++++++++
From: russotto@eng.umd.edu (Matthew T. Russotto)
Date: Wed, 13 May 92 13:56:00 GMT
Organization: College of Engineering, University of Maryland, College Park
In article <walkerj.705627208@milo.math.scarolina.edu> walkerj@math.scarolina.edu (Jim Walker) writes:
>IM IV says: "If neither the Shift nor the Command key is held down, a click
>causes all current selections to be deselected, and the cell receiving the
>click to be selected."
>
>However, the actual behavior of the List Manager seems to be that if all
>cells are selected, and you click on one of the cells, then nothing
>happens.
>
>Do you folks agree that this is a conflict between theory and practice? If
>so, is there any way to make the List Manager behave right?
The note above only applies to currently deselected cells, and I like
it that way :-).
<runs and hides from HI police> <no, not McGarret>
- --
Matthew T. Russotto russotto@eng.umd.edu russotto@wam.umd.edu
Some news readers expect "Disclaimer:" here.
Just say NO to police searches and seizures. Make them use force.
(not responsible for bodily harm resulting from following above advice)
+++++++++++++++++++++++++++
From: peter@cujo.curtin.edu.au (Peter N Lewis)
Organization: NCRPDA, Curtin University
Date: Thu, 14 May 1992 03:38:18 GMT
In article <1992May13.162448.8061@waikato.ac.nz>, ldo@waikato.ac.nz (Lawrence D'Oliveiro, Waikato University) writes:
>
> In article <1992May13.013842.18668@news.cso.uiuc.edu>, tinsel@uiuc.edu (Thomas Aaron Insel) writes:
> > walkerj@math.scarolina.edu (Jim Walker) writes:
> >
> >> IM IV says: "If neither the Shift nor the Command key is held down, a click
> >> causes all current selections to be deselected, and the cell receiving the
> >> click to be selected."
> >
> >> However, the actual behavior of the List Manager seems to be that if all
> >> cells are selected, and you click on one of the cells, then nothing
> >> happens.
Personally, I consider this a bug, probably its a bug thats been around so
long (since well before there even was a List Manager as such) that Apple
have decided to call it a feature instead :). The thing that really gives
it away is what happens when you click and drag:
Selec all cells (or any subset really...)
Click in a selected cell and drag
What happens is that the cells that are dragged over are deselected, its
simmilar to the way MacPaint would work if you click on an on pixel, and
drag, it whites out the pixels you drag over.
> Yup, and if all cells are currently selected, then the empty space below
> (and to the right? I've never created lists with more than one column!)
> of the last cell can stand in for an unselected cell for you to click on.
Yeah, well, thats the normal real intuitive UI for you :-)
> Of course, if you're clever in setting your scroll limits so this empty
> space doesn't come into view, then you lose this single-click shortcut for
> deselecting all cells, and you need three clicks to do it :-{.
Nahh, you only need two if you can drag - click and drag a bit and then click
in the empty space and drag off the top of the list... :), actually, that
only works sometimes too, sometimes that leaves the first item selected,
don't you just love a consistent UI :)
Have fun,
Peter.
______________________________________________________________________
Peter N Lewis, NCRPDA, Curtin University peter@cujo.curtin.edu.au
GPO Box U1987, Perth WA 6001, AUSTRALIA FAX: +61 9 367 8141
---------------------------
From: sc@argentic.uucp (Sterling Chipperfield)
Subject: Gestalt
Date: 22 Apr 92 04:04:12 GMT
Organization: Argentic BBS [Toronto, Ontario, Canada]
First of all, how do you pronounce Gestalt? Is it gee-stalt, jess-talt,
jest-alt, or what?
Now, I am using THINK Pascal on an LC running system 7. If I check for
PhysicalRAMSize, it tells me 10485760 (10 megs * 1024 * 1024 to get it into
bytes) which is correct, I have 10 megs. Then I check for MacintoshType,
and I get 19, which is correct, CONST gestaultMacLC = 19.
So it seems to work fine. Here's the problem: when I ask for CTBVersion,
I get 257. The lastest version is 1.1, and I doubt my machine has the
latest version. So why is the number so high... any relivance in the fact
that 257-265 = 1 which I guess could be the verion number?
The next question... I know that ord(True) = 1, (I even asked the computer
to make sure :-)). If I ask if there is virtual memory on my machine I
get a 0, which is false, which is correct. If I ask EditionMgrAttr I get
a 1 which is true, which is correct. BUT, using EditionMgrAttr as the
example, on page 3-49 in the IM VI, is has the const defined as follows:
gestaultEditionMgrPresent = 0; {TRUE if Edition Mgr present}
Why a "0" and NOT a "1", I just determined that ord(True) = 1.
Thanks if you can help.
_____________________ ________________________
Sterling Chipperfield Toronto, Ontario, Canada
sc@argentic.gts.org V: 1-416-269-5335
sc@argentic.uucp D: 1-416-265-4025
_____________________ ________________________
+++++++++++++++++++++++++++
From: k044477@hobbes.kzoo.edu (Jamie R. McCarthy)
Date: 24 Apr 92 20:22:14 GMT
Organization: Kalamazoo College
sc@argentic.uucp (Sterling Chipperfield) writes:
>
>First of all, how do you pronounce Gestalt? Is it gee-stalt, jess-talt,
>jest-alt, or what?
Well, most of us probably pronounce it "gestalt." Those with a German
background might go for broke and say "Geshtalt."
>So it seems to work fine. Here's the problem: when I ask for CTBVersion,
>I get 257. The lastest version is 1.1, and I doubt my machine has the
>latest version. So why is the number so high... any relivance in the fact
>that 257-265 = 1 which I guess could be the verion number?
Yes. 257 is hexadecimal 0101, which is read "1.1".
>If I ask EditionMgrAttr I get
>a 1 which is true, which is correct. BUT, using EditionMgrAttr as the
>example, on page 3-49 in the IM VI, is has the const defined as follows:
>
>gestaultEditionMgrPresent = 0; {TRUE if Edition Mgr present}
>
>Why a "0" and NOT a "1", I just determined that ord(True) = 1.
Whenever you ask Gestalt for an "...Attr", you get back a small bitmap of
answers. In this case, you were returned a 1, which is binary
00000000000000000000000000000001. Now, the constant of zero refers to
the bit position that you should check to find the answer. If there
were a selector "CONST gestaltEditionMgrSpiffy = 5", Gestalt would
return 00000000000000000000000000100001 (or, in decimal, 33) if your
Edition Manager were spiffy.
To test whether the Edition Manager is present, call
BitTst(theReturnedValue, gestaltEditionMgrPresent).
- --
Jamie McCarthy Internet: k044477@kzoo.edu AppleLink: j.mccarthy
"Also thanks to: Inside Macintosh (except vol. V, ch. 27)"
- the Tesserae "About..." box
+++++++++++++++++++++++++++
From: anders@verity.com (Anders Wallgren)
Organization: Verity, Inc., Mountain View, CA
Date: Fri, 24 Apr 92 20:03:02 GMT
ge.stalt \g<e>-'s(h)t<a:>lt, -'s(h)t<o.>lt\ n, pl ge.stalt.en \-<\e>n\
or gestalts (1922)
[G, lit., shape, form]
:a structure, configuration, or pattern of physical, biological, or
psychological phenomena so integrated as to constitute a functional
unit with properties not derivable by summation of its parts
+++++++++++++++++++++++++++
From: resnick@cogsci.uiuc.edu (Pete Resnick)
Date: 24 Apr 92 19:15:06 GMT
Organization: University of Illinois at Urbana
sc@argentic.uucp (Sterling Chipperfield) writes:
>First of all, how do you pronounce Gestalt? Is it gee-stalt, jess-talt,
>jest-alt, or what?
It's ge-shtalt, where the "e" is a schwa, like in "let", and the "s"
is pronounced "sh". It's a german word.
>So it seems to work fine. Here's the problem: when I ask for CTBVersion,
>I get 257. The lastest version is 1.1, and I doubt my machine has the
>latest version. So why is the number so high... any relivance in the fact
>that 257-265 = 1 which I guess could be the verion number?
No, it's returning it in two bytes. If you look at it in hexadecimal,
it is 0x0101. The first byte is 1 and the second byte is 1, making it
1.1. Neat, huh?
>The next question... I know that ord(True) = 1, (I even asked the computer
>to make sure :-)). If I ask if there is virtual memory on my machine I
>get a 0, which is false, which is correct. If I ask EditionMgrAttr I get
>a 1 which is true, which is correct. BUT, using EditionMgrAttr as the
>example, on page 3-49 in the IM VI, is has the const defined as follows:
>
>gestaultEditionMgrPresent = 0; {TRUE if Edition Mgr present}
>
>Why a "0" and NOT a "1", I just determined that ord(True) = 1.
Because it is *bit* 0 that is set if the Edition Manager is present.
Gestalt expects that you will use the BitTst routine to check the
results.
pr
- --
Pete Resnick (...so what is a mojo, and why would one be rising?)
Graduate assistant - Philosophy Department, Gregory Hall, UIUC
System manager - Cognitive Science Group, Beckman Institute, UIUC
Internet: resnick@cogsci.uiuc.edu
+++++++++++++++++++++++++++
From: rsfinn@concerto.lcs.mit.edu (Russell S. Finn)
Organization: MIT Laboratory for Computer Science
Date: Fri, 24 Apr 1992 22:49:02 GMT
In article <1529@argentic.uucp>, sc@argentic.uucp (Sterling Chipperfield) writes:
|> First of all, how do you pronounce Gestalt? Is it gee-stalt, jess-talt,
|> jest-alt, or what?
It's derived from German, and so is pronounced "geh-SHTALT" (accent on
the second syllable). Or, as "webster" puts it:
ge.stalt \g*-'shta:lt\ \-*n\ n or ge.stal.ten or gestalts [G, lit., shape,
form] pl : a structure or configuration of physical, biological, or
psychological phenomena so integrated as to constitute a functional unit
with properties not derivable from its parts in summation
(Does anyone else think that Apple is using the word incorrectly?
Usually, when we call Gestalt, we're more interested in a specific
part than the whole system.)
|> Here's the problem: when I ask for CTBVersion,
|> I get 257. The lastest version is 1.1, and I doubt my machine has the
|> latest version. So why is the number so high... any relivance in the fact
|> that 257-256 = 1 which I guess could be the verion number?
I bet this is an encoded version number: 257 = $0101 = version 1.1.
Most version numbers work this way (AppleTalk is the only exception I
can think of). Since you're running System 7, you probably do have
the latest version.
|> The next question... I know that ord(True) = 1, (I even asked the computer
|> to make sure :-)). If I ask if there is virtual memory on my machine I
|> get a 0, which is false, which is correct. If I ask EditionMgrAttr I get
|> a 1 which is true, which is correct. BUT, using EditionMgrAttr as the
|> example, on page 3-49 in the IM VI, is has the const defined as follows:
|>
|> gestaltEditionMgrPresent = 0; {TRUE if Edition Mgr present}
|>
|> Why a "0" and NOT a "1", I just determined that ord(True) = 1.
Constants ending in "attr" return a value which is a series of flags;
gestaltEditionMgrAttr happens to only have one flag defined, which is
located in bit 0. Look at some of the other definitions which have
multiple flags defined (like the Sound Manager, for instance), and
you'll see what I mean.
So here you need to test bit 0 to determine whether the feature is
present or not (just comparing the whole return value to 0 (false) or
1 (true) won't work if Apple ever defines other bits for the Edition
Manager). I forget how you'd do this in Pascal; in C it would go
something like this:
if ((result & (1 << gestaltEditionMgrPresent)) != 0)
/* then Edition Manager is present */;
Hope this helps.
- -- Russell S. Finn
rsfinn@lcs.mit.edu
+++++++++++++++++++++++++++
From: cfranz@iiic.ethz.ch (Christian Steffen Ove Franz)
Organization: Dept. Informatik, Swiss Federal Institute of Technology (ETH)
Date: Sat, 25 Apr 1992 14:42:02 GMT
In article <1529@argentic.uucp> sc@argentic.uucp (Sterling Chipperfield) writes:
>First of all, how do you pronounce Gestalt? Is it gee-stalt, jess-talt,
>jest-alt, or what?
>
Neither. It is a german word meaning 'form' or 'appearance' It is pronounced
Geh-stalt.
the 'g' as in 'go'
the 'a' as in 'far'.
Cheers,
Christian
- --
- -----------------------------------------------------------------------------
Christian S. O. Franz | cfranz@iiic.ethz.ch
ETH Zuerich, Swizerland | vismgr@rz.ethz.ch
+++++++++++++++++++++++++++
From: russotto@eng.umd.edu (Matthew T. Russotto)
Date: 27 Apr 92 12:23:32 GMT
Organization: College of Engineering, University of Maryland, College Park
In article <1529@argentic.uucp> sc@argentic.uucp (Sterling Chipperfield) writes:
>First of all, how do you pronounce Gestalt? Is it gee-stalt, jess-talt,
>jest-alt, or what?
I pronounce it ge-shtalt (hard 'g')
>So it seems to work fine. Here's the problem: when I ask for CTBVersion,
>I get 257. The lastest version is 1.1, and I doubt my machine has the
>latest version. So why is the number so high... any relivance in the fact
>that 257-265 = 1 which I guess could be the verion number?
Looks like you DO have the latest version: 257 = 0x0101.
>The next question... I know that ord(True) = 1, (I even asked the computer
>to make sure :-)). If I ask if there is virtual memory on my machine I
>get a 0, which is false, which is correct. If I ask EditionMgrAttr I get
>a 1 which is true, which is correct. BUT, using EditionMgrAttr as the
>example, on page 3-49 in the IM VI, is has the const defined as follows:
>
>gestaultEditionMgrPresent = 0; {TRUE if Edition Mgr present}
>
>Why a "0" and NOT a "1", I just determined that ord(True) = 1.
Maybe it means that bit 0 of the EditionMgrAttr byte is set if the
Edition Manager is present.
- --
Matthew T. Russotto russotto@eng.umd.edu russotto@wam.umd.edu
Some news readers expect "Disclaimer:" here.
Just say NO to police searches and seizures. Make them use force.
(not responsible for bodily harm resulting from following above advice)
+++++++++++++++++++++++++++
From: russotto@eng.umd.edu (Matthew T. Russotto)
Date: 27 Apr 92 12:26:52 GMT
Organization: College of Engineering, University of Maryland, College Park
In article <1992Apr24.202214.24858@hobbes.kzoo.edu> k044477@hobbes.kzoo.edu (Jamie R. McCarthy) writes:
>
>>If I ask EditionMgrAttr I get
>>a 1 which is true, which is correct. BUT, using EditionMgrAttr as the
>>example, on page 3-49 in the IM VI, is has the const defined as follows:
>>
>>gestaultEditionMgrPresent = 0; {TRUE if Edition Mgr present}
>>
>>Why a "0" and NOT a "1", I just determined that ord(True) = 1.
>
>Whenever you ask Gestalt for an "...Attr", you get back a small bitmap of
>answers. In this case, you were returned a 1, which is binary
>00000000000000000000000000000001. Now, the constant of zero refers to
>the bit position that you should check to find the answer. If there
>were a selector "CONST gestaltEditionMgrSpiffy = 5", Gestalt would
>return 00000000000000000000000000100001 (or, in decimal, 33) if your
>Edition Manager were spiffy.
>
>To test whether the Edition Manager is present, call
>BitTst(theReturnedValue, gestaltEditionMgrPresent).
I don't think that will work-- BitTst is backwards, and thus would
test bit 31 instead of bit 0 in this case.
- --
Matthew T. Russotto russotto@eng.umd.edu russotto@wam.umd.edu
Some news readers expect "Disclaimer:" here.
Just say NO to police searches and seizures. Make them use force.
(not responsible for bodily harm resulting from following above advice)
+++++++++++++++++++++++++++
From: potts@itl.itd.umich.edu (Paul Potts)
Date: 27 Apr 92 13:07:15 GMT
Organization: Instructional Technology Laboratory, University of Michigan
In article <1529@argentic.uucp> sc@argentic.uucp (Sterling Chipperfield) writes:
>First of all, how do you pronounce Gestalt? Is it gee-stalt, jess-talt,
>jest-alt, or what?
It is from German - "gush-talt," sort of, rhyming with "mush-salt." The
e in "Gestalt" is a schwah- an undifferentiated vowel, sort of like the
second "a" in "Reagan."
- --
Paul Potts - potts@itl.itd.umich.edu
Un damne' descendant sans lampe,/ Au bord d'un gouffre dont l'odeur
Trahit l'humide profondeur,/ D'e'ternels escaliers sans rampe...
-Baudelaire on DOS/Windows programming
+++++++++++++++++++++++++++
From: k044477@hobbes.kzoo.edu (Jamie R. McCarthy)
Date: 27 Apr 92 14:19:15 GMT
Organization: Kalamazoo College
russotto@eng.umd.edu (Matthew T. Russotto) writes:
>k044477@hobbes.kzoo.edu (Jamie R. McCarthy) writes:
>>
>>To test whether the Edition Manager is present, call
>>BitTst(theReturnedValue, gestaltEditionMgrPresent).
>
>I don't think that will work-- BitTst is backwards, and thus would
>test bit 31 instead of bit 0 in this case.
Er...right. Remind me to stop trying to do Pascal. The proper way to
do it is demonstrated on IM VI 3-34:
BitTst(@theReturnedValue, 31-gestaltEditionMgrPresent);
- --
Jamie McCarthy Internet: k044477@kzoo.edu AppleLink: j.mccarthy
In this case, the pot may not call the kettle "black" without hypocrisy.
- Eric Scott Kuhnen (eric@wdl1.wdl.loral.com)
+++++++++++++++++++++++++++
From: eacj@theory.TC.Cornell.EDU (Julian Vrieslander)
Date: 14 May 92 20:11:30 GMT
Organization: Cornell Theory Center
I would like to be able to test for the existence of NuBus slots from
within a program. According to IM-VI, the Gestalt trap with selector =
gestaltNuBusConnectors is supposed to return a 4-byte bitmap with bits
set to 1 at positions that correspond to available slots in NuBus memory
space. On my Mac II running System 7.0.1 this provides the correct results.
But on a Mac Plus, you would hope that the result comes back as 0L to
indicate no slots. But on my Mac Plus, running 6.0.5, it does not - some of
the bits are set.
Is there are reliable way to test for NuBus slots?
- --
Julian Vrieslander
Neurobiology & Behavior, Mudd Hall, Cornell University, Ithaca NY 14853
INTERNET: eacj@theory.tc.cornell.edu BITNET: eacj@crnlthry
UUCP: ..cornell!batcomputer!eacj
---------------------------
From: speth@cats.ucsc.edu (James Gustave)
Subject: HELP! Beginning C++ on Mac....
Date: 29 Apr 92 06:14:43 GMT
Organization: University of California, Santa Cruz
I'm an experienced C programmer, and I'd like to move on to C++.
What are some good C++ development systems for the Mac?
Does Think C support C++ or is it's OOPstuff something different?
If so, how different is it?
I think MPW is a little out of my price range, are there good alternatives?
Thanks.
- --
Jim Speth
speth@cats.ucsc.edu
+++++++++++++++++++++++++++
From: cory@enigami.mv.com (Cory Kempf)
Date: 30 Apr 92 04:12:27 GMT
Organization: EnigamI, Inc., Nashua, NH
In article <34129@darkstar.ucsc.edu> (comp.sys.mac.programmer), speth@cats.ucsc.edu (James Gustave) writes:
>
>I'm an experienced C programmer, and I'd like to move on to C++.
>What are some good C++ development systems for the Mac?
There is only one good (well OK) C++ for the Mac, and that is MPW.
It is a port of CFront 2.1 though. From what I can tell, the Zortech
C++ ain't there yet.
>Does Think C support C++ or is it's OOPstuff something different?
>If so, how different is it?
Think C is not C++. It is an implimentation of Apple's minimally
object C. It has *SOME* C++ features, but it isn't really C++. It
is OOP though.
+C
- -------------------------------------------------------------
Cory Kempf EnigamI, Inc.
cory@enigami.mv.com ...!decvax!enigami!cory
Microsoft Free and Proud Of It!...
...Microsoft Products: Just Say no.
+++++++++++++++++++++++++++
From: ksand@apple.com (Kent Sandvik)
Date: 12 May 92 04:12:51 GMT
Organization: MacDTS Mongols
In article <34129@darkstar.ucsc.edu>, speth@cats.ucsc.edu (James Gustave)
writes:
>
>
> I'm an experienced C programmer, and I'd like to move on to C++.
> What are some good C++ development systems for the Mac?
> Does Think C support C++ or is it's OOPstuff something different?
> If so, how different is it?
> I think MPW is a little out of my price range, are there good alternatives?
I guess this is a very, very classical question. Let's see if I could
answer it in two sentences.
a) If you want a painless development OOP development environment, but
don't need full C++ semantics, go with Think C 5.0.
b) If your manager demands, or your project requires C++ today, buy MPW C++
with all the MPW stuff.
c) and if you are really brave, write your own Scheme system with
object extensions :-).
Cheers,
Kent
---------------------------
From: felciano@medisg.stanford.edu (Ramon M. Felciano)
Subject: Q: what is the basic edit-resource-file procedure?
Date: 29 Apr 92 19:39:23 GMT
Organization: SUMMIT (Stanford Univ. Medical Media and Information
Hi!
I'm writing a simple resource editor ('vers' resources). Its going to be
purely drag-and-drop, so System 7 is assumed. As such, I'd like to use
the new FSSpec scheme whenever possible. Here's the basic startup
procedure:
- Get an FSSpec for the File
- If the file is in use, alert the user and exit.
- If the resource fork for that file is in use, alert the user
and exit (e.g. Hypercard stack)
- If the file has no resource fork, ask if the user wants to
create one.
a. If so, mark an internal flag (don't create it).
b. If not, exit.
- See if the 'vers' resource exists.
a. If so, load it and unhook it.
b. If not, create a new one.
- Close the resource file. We now have a handle to our 'vers'
resource.
- Edit the resource. If the user cancels, exit without saving.
- (User accepts changes) Open the resource file again
- If the file is in use, alert the user and exit.
- If the resource fork for that file is in use, alert the user
and exit (e.g. Hypercard stack)
- If the file has no resource fork AND the user wanted to create
one, do so.
- If the 'vers' resource exists, delete it.
- Add our new, edited 'vers' resource.
- Call WriteResource
- Close the file
- Quit.
My questions are:
===============
1. Is there a System 7 equivalent for GetAppFiles, or should I still use
that call and manually get my FSSpec records.
2. Is there an clean, simple way to do the 3 file checks I listed (file
is open, resource fork is in use, resource fork exists)? I seem to have
this fear of File Manager paramblocks (I'm never sure which fields NEED
to be filled in, which SHOULD, and which don't matter), and hope there's
a better way to do this stuff.
3. The application is essentially a modal dialog. Am I being paranoid in
my file handling (e.g. closing the file during the edit in case the user
switches out to multifinder and edits the file with another app)?
Thanks!
Ramon M. Felciano
Associate Director, SUMMIT
Stanford University Medical Media and Information Technologies
+++++++++++++++++++++++++++
From: grobbins@Apple.COM (Grobbins)
Date: 13 May 92 16:16:24 GMT
Organization: Apple DTS
In article <24796@goofy.Apple.COM> jpugh@apple.com (El Registrar) writes:
>You should put up your About window in this 'oapp' event handler. HI
>recommends an unclosable window, but I personally want a close box.
To elaborate just a bit
- - an app should get an 'oapp' Apple event if it doesn't get an 'odoc'
event. As C.K. Haun likes to point out, however, this is not
guaranteed, as someone could have called LaunchApplication and
attached some other event. Looking for an 'oapp' to see if the
application was started without any documents is a good idea, but
it isn't foolproof.
- - Apple HI has recommended that applications always keep at least one
small window open so that users do not forget that programs are
running in the background. As Jon says, all this stuff is pretty
easy if you look at IM VI and the DTS sample code and the Q&A Stack.
Here's some code which can put up a dumb but attractive window.
{ gOApped is set in the 'oapp' event handler }
if gOApped and (myWindowPtr = nil) then { show the window }
begin
myPicHandle := GetPicture(128);
if myPicHandle <> nil then
begin
myWindowPtr := GetNewWindow(128, @myWindowRecord, Pointer(-1));
if myWindowPtr <> nil then
SetWindowPic(myWindowPtr, myPicHandle);
end;
end;
Grobbins grobbins@apple.com
Usual disclaimers apply, usually.
+++++++++++++++++++++++++++
From: jpugh@apple.com (Jon Pugh)
Date: 13 May 92 06:10:42 GMT
Organization: Apple Computer, Inc.
In article <1992Apr29.193923.12503@leland.Stanford.EDU>, felciano@medisg.stanford.edu (Ramon M. Felciano) writes:
>
> 1. Is there a System 7 equivalent for GetAppFiles, or should I still use
> that call and manually get my FSSpec records.
Yes, there is a System 7 equivalent and it's called Apple Events. Support
the Required 'Open Document' event and you won't need to do anything but
idle when you start up. An 'odoc' will just magically show up in your event
queue and then you can open the file.
A proper shell application will put up menus and a simple About window when
opened without a file. This way you can open the app and then drag and drop
a number of files onto it without having to load it every time. In this
case, you don't want to quit after closing a file.
If you are started without a file, you will get an 'Open Application' event.
You should put up your About window in this 'oapp' event handler. HI
recommends an unclosable window, but I personally want a close box.
See IM6 for more details and code samples. It's damned easy, really.
Jon
kAERegistrar
---------------------------
From: d88-jwa@cyklop.nada.kth.se (Jon W{tte)
Subject: How to (not) hide the menu bar
Organization: Royal Institute of Technology, Stockholm, Sweden
Date: Wed, 13 May 1992 22:14:28 GMT
I just HAVE to share this Official Tog Quote (tm) from
yesterday evening:
"You don't hide the menu bar ! ... You might considering
making it the same COLOR as the BACKGROUND, but you don't
hide the menubar..."
Imagine 3000 Apple developers cheering and hooting at that :-)
Thanx Apple for providing TCP/IP at the WWDC !
- --
h++ - new and improved !
"It's simple. Some people have braces in their names, and some don't. You'll
just have to accept it the way it is." - Me: h+@nada.kth.se; Jon W{tte
+++++++++++++++++++++++++++
From: mxmora@unix.SRI.COM (Matt Mora)
Date: 14 May 92 01:58:54 GMT
Organization: SRI International, Menlo Park, California
In article <D88-JWA.92May13231428@cyklop.nada.kth.se> d88-jwa@cyklop.nada.kth.se (Jon W{tte) writes:
>I just HAVE to share this Official Tog Quote (tm) from
>yesterday evening:
>"You don't hide the menu bar ! ... You might considering
>making it the same COLOR as the BACKGROUND, but you don't
>hide the menubar..."
>Imagine 3000 Apple developers cheering and hooting at that :-)
>Thanx Apple for providing TCP/IP at the WWDC !
Yeah that was the best talk in the whole day! Very funny the Game world skit.
Yes THANKS APPLE FOR PROVIDING TCP/IP AT THE WWDC! Of course there is
never enough machines available. :-)
Matt
- --
___________________________________________________________
Matthew Mora | my Mac Matt_Mora@sri.com
SRI International | my unix mxmora@unix.sri.com
___________________________________________________________
+++++++++++++++++++++++++++
From: d88-jwa@dront.nada.kth.se (Jon W{tte)
Date: 14 May 92 04:44:56 GMT
Organization: Royal Institute of Technology, Stockholm, Sweden
> mxmora@unix.SRI.COM (Matt Mora) writes:
Yes THANKS APPLE FOR PROVIDING TCP/IP AT THE WWDC! Of course there is
never enough machines available. :-)
Ah, but they have LocalTalk connectors for PowerBooks too (in
addition to the battery charger stands) where you can run MacTCP
and NCSA Telnet. WAY COOL !
By the way, for all usenetters at the WWDC: I stay in room 1930
at the Fairmont; leave me a message :-)
- --
h++ - new and improved !
"It's simple. Some people have braces in their names, and some don't. You'll
just have to accept it the way it is." - Me: h+@nada.kth.se; Jon W{tte
---------------------------
End of C.S.M.P. Digest
**********************